$minHeight: 30 !default;
$padding: 4px 10px !default;
span {
  display: inline-block;
  min-width: 1px;
}
.u-editor {
  transition: all 0.3s;
  background: var(--u-bg-color-secondary);
  border: 1px solid var(--u-bg-color-overlay);
  border-radius: 4px;
  font-size: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  
  .content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    .rich-input {
      flex: 1;
    }
  }

  .rich-input {
    min-height: $minHeight;
    line-height: 22px;
    padding: $padding;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    resize: both;
    background-position: 120% -10px;
    transition: background 0.3s;
    .mentionUser {
      background-color: red;
    }
  }

  .rich-input:empty::before {
    cursor: text;
    content: attr(placeholder);
    color: var(--u-text-color-placeholder);
  }
  .image-preview-box {
    display: flex;
    padding: 0 12px;
    flex-wrap: wrap;
    .image-preview {
      position: relative;
      img {
        height: 64px;
        min-width: 64px;
      }
      .clean-btn {
        position: absolute;
        top: 0;
        right: 0;
        cursor: pointer;
        svg {
          display: block;
        }
      }
      .clean-btn:hover {
        opacity: 0.8;
      }
    }
  }
}
.active {
  border-color: var(--u-color-primary);
  background: var(--u-bg-color);
}

// .active .rich-input {
//   background: url('/static/img/commentBack.webp') no-repeat 95% -10px/19%;
// }
